package com.example.weizix.net;

import com.example.weizix.bean.DailyNewsBean;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Path;

public interface ZhihuService {
    String sUrl = "http://news-at.zhihu.com/api/4/";

    /**
     * 2)最新日报
     * news/latest
     * 3)往期日报
     * news/before/{date}   日期格式(20181206)
     */

    @GET("news/latest")
    Flowable<DailyNewsBean> getLatestNews();


    @GET("news/before/{date}")
    Flowable<DailyNewsBean> getOldNews(@Path("date") String date);
}
